import request from "./request/index.js";

export async function getSystemSettings() {
    try {
        const res = await request.get('/setting');
        return res.data;
    } catch (err) {
        return Promise.reject(err);
    }
}

export async function updateImageAddress(data) {
    try {
        const res = await request.put('/setting/imageAddress', data);
        return res.data;
    } catch (err) {
        return Promise.reject(err);
    }
}